package com.sky.Task;


import com.sky.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class SpringTest01 {
    @Autowired
    private OrderService orderService;


    @Scheduled(cron = "0/10 * * * * ?")
    public void Test01(){
        //log.info("helloworld");
        orderService.checkoutTimeOut();


    }

    @Scheduled(cron = "1 * * * * ?")
    public void Test02(){
        //log.info("helloworld");
        orderService.checkProgressOrder();


    }

}
